package weixinkeji.dev.dc.buy.order.h.manager.vo.check;

import sys.wx.c.components.check.CheckService;
import sys.wx.c.components.check.bean.CheckData;

/**
 *
 * @author imyweb.org
 */
public class ManagerFWYUpdateNumLockCheck {

    public static CheckData doNumLock() {
        CheckData cd = CheckService.getCheckData();
        cd
                .put("lockNum", "(1|-1){1}", true)
                .put("bid", CheckData.ID, true);
        return cd;
    }

    public static CheckData doNumBack() {
        CheckData cd = CheckService.getCheckData();
        cd
                .put("backNum", "-{1}[0-9]+", true)
                .put("bid", CheckData.ID, true)
                .put("order_id", CheckData.ID, true)
                .put("food_id", CheckData.ID, true);
        return cd;
    }
}
